package 常用API.DateDemo;

import java.util.Date;

public class DateDemo {
    /**
     *Date类方法
     * @param args
     */
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println("new 常用API.Date(): " + date);

        Long time = date.getTime();
        System.out.println("date.getTime(): " + time);

        Date date1 = new Date(0L);
        System.out.println("new 常用API.Date(0l):" + date1);

        date1.setTime(14962627904L);
        System.out.println("date1.setTime(14962627904L):" + date1);
    }
}
